package vip.liux.contracts.shared.enums.pay;

import vip.liux.core.enums.IEnum;

public enum PayNotifyStatus implements IEnum {

    WAITING(0, "等待通知"),
    SUCCESS(1, "通知成功"),
    FAILURE(2, "通知失败"), // 多次尝试，彻底失败
    REQUEST_SUCCESS(3, "请求成功，但是结果失败"),
    REQUEST_FAILURE(4, "请求失败"),
    ;

    /**
     * 类型
     */
    private final int value;
    /**
     * 名字
     */
    private final String desc;

    PayNotifyStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
